<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title><?php echo $title.'-'.$admin_title;?></title>
	<link rel="stylesheet" href="/static/addon/bootstrap-3.3.7-dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="/static/admin/css/admin.css">
  <?php foreach($css as $item=>$key):?>
  <link rel="stylesheet" href="<?=$item?>">
  <?php endforeach;?>
<script src="/static/admin/js/jquery-3.2.1.min.js"></script>
<script src="/static/addon/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
</head>
<body>
  <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#"><?php echo $company_name; ?></a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right" style="margin:0">
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" ><?php echo $user['name'];?> <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="javascript:void(0);" onclick="passwordChange();">修改密码</a></li>
                <li><a href="javascript:void(0);" onclick="nameChange();">修改名称</a></li>
                <li><a href="<?php echo site_url('admin/login/logout');?>">退出</a></li>
              </ul>
            </li>
          </ul>
        </div><!--/.nav-collapse -->
    </nav>
   <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
        
        <ul class="nav nav-sidebar">
          <?php foreach ($menu as $item):?>
              <?php if($item['uri']==''):?>
                <li role="separator" class="divider"></li>
              <?php else:?>
                <li<?php if($top_dir == explode('/',$item['uri'])[0]): ?> class="active"<?php endif;?>><a href="<?php echo site_url('admin/'.$item['uri']);?>"><span class="glyphicon <?php echo $item['icon'];?>"></span><?php echo $item['title'];?></a></li>
              <?php endif;?>
          <?php endforeach;?>
          </ul>

        </div>

<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<div class="main-header">
  <h3><?php echo $title;?></h3>
</div>
    

    